package gameObjects;

import java.util.Vector;

import logic.Coords2D;

public class BonusCollection{
	private Vector<Coords2D> bonus;	
	public BonusCollection()
	{
		bonus=new Vector<Coords2D>();
	}
	
	public void setVector(Vector<Coords2D> k)
	{
		bonus=k;
	}
	
	public void  removeByCoords(float x, float y)
	{
		for(int j=0; j<bonus.size();j++){
			if(bonus.get(j).getX()==x && bonus.get(j).getY()==y){
				bonus.remove(j);
				break;
			}
		}
	}
	
	public Vector<Coords2D> getVector()
	{
		return bonus;
	}
}
